<template>
    <div>
        <button @click="handleGoAddwork">布置作业</button>
        <button @click="handleGoSeework">查看作业</button>
    </div>
    <RouterView />
</template>
<script setup>
import { useRouter } from 'vue-router';

const router = useRouter()

const handleGoAddwork = () => {
    router.push('/work/addwork')
}

const handleGoSeework = () => {
    router.push('/work/seework')
}
</script>